import greenfoot.*;  // (World, Actor, GreenfootImage, Greenfoot and MouseInfo)

/**
 * Write a description of class FoodClone here.
 * 
 * @author (your name) 
 * @version (a version number or a date)
 */
public class FoodClone extends Food
{
    public void act()
    {
        if(isTouching(Snake.class))
        {
            getWorld().removeObject(this);  // 从世界中移除当前对象
        }
    }
    public void randomChose()
    {
        
    }
}
